package com.rajaev.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by Administrator on 2017/3/1 0001.
 */
@RestController
@RequestMapping("/test")
public class TestController {

    @RequestMapping("getString")
    @ResponseBody
    public String get(){
        return "111";
    }
    @RequestMapping("getMap")
    @ResponseBody
    public Map getMap(){
        Map<String,Object> map = new HashMap<String, Object>();
        map.put("name","tianjie");
        return map;
    }
}
